package com.corgi.core.modules.sys.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;

/**
 * TestRank
 *
 * @title: TestRank
 * @description:
 * @author: dengmiao
 * @create: 2020-05-23 14:57
 **/
@Entity
@Table
public class TestRank {

    @Id
    private Integer id;

    private Integer uid;

    private BigDecimal score;

    @Transient
    private Integer rank;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public BigDecimal getScore() {
        return score;
    }

    public void setScore(BigDecimal score) {
        this.score = score;
    }

    public Integer getRank() {
        return rank;
    }

    public void setRank(Integer rank) {
        this.rank = rank;
    }

    @Override
    public String toString() {
        return "TestRank{" +
                "id=" + id +
                ", uid=" + uid +
                ", score=" + score +
                ", rank=" + rank +
                '}';
    }
}
